//
//  WBBaseViewController.swift
//  WeiBo
//
//  Created by 尹琼 on 2017/4/27.
//  Copyright © 2017年 尹琼. All rights reserved.
//

import UIKit

class WBBaseViewController: UIViewController {
    
    lazy var naviItem = UINavigationItem()
    

    override func viewDidLoad() {
        super.viewDidLoad()

       setUpNavigation()
    }
}

// MARK: - 设置导航栏
extension WBBaseViewController {
    
    /// 导航栏基本设置
    func setUpNavigation()  {
        //判断是否有导航栏
        guard let nav = navigationController?.navigationBar else {
            return
        }
        //设置导航栏
        nav.setNavigationBarAttributed(titleText: UIColor.white, barTint: UIColor.orange, dividingLine: false, translucent: false)
    }
}
